Pass Behat Tests Example

Case 1 - Actual output contains line break, PR547 Problem In DatasetViewContext.php: /** * @Then there is a :arg1 meta tag :arg2 with value :arg3 */ public function thereIsAMetaTagWithValue($arg1, $arg2, $arg3) { $metaNode = $this->minkContext->getSession()->getPage()->find('xpath', "//meta[@$arg1='$arg2' and @content='$arg3']"); PHPUnit_Framework_Assert::assertNotNull($metaNode); } In dataset-metadata-link-preview.feature: @wip @issue-513 Scenario: Can be parsed by preview tools that use HTML meta-tags (e.g: search engines) Given I am not logged in to Gigadb web site When I am on "/dataset/100002" Then there is a meta tag "description" with value "The Adelie penguin (Pygoscelis adeliae) is an iconic penguin of moderate stature and a tuxedo of black and white feathers. The penguins are only found in the Antarctic region and surrounding islands. Being very sensitive to climate change, and due to changes in their behavior based on minor shifts in climate, they are often used as a barometer of the Antarctic. With its status as one of the adorable and cuddly flightless birds of Antarctica, they serve as an example for conservation, and as a result they are now categorised at low risk for endangerment. The sequence of the penguin can be of use in understanding the genetic underpinnings of its evolutionary traits and adaptation to its extreme environment; its unique system of feathers; its prowess as a diver; and its sensitivity to climate change. We hope that this genome data will further our understanding of one of the most remarkable creatures to waddle the planet Earth. We sequenced the genome of an adult male from Inexpressible Island, Ross Sea, Antartica (provided by David Lambert) to a depth of approximately 60X with short reads from a series of libraries with various insert sizes (200bp- 20kb). The assembled scaffolds of high quality sequences total 1.23 Gb, with the contig and scaffold N50 values of 19 kb and 5 mb respectively. We identified 15,270 protein-coding genes with a mean length of 21.3 kb." The error is: ...

January 8, 2021 · 9 min · 1709 words · Ken Cho

Learn, todo and done 3-7/8/20

Learn To study Clean Code Study the gigaDB codebase BDD TDD Todo Issue View files from large db #437 Issue Replace unicode character #276 Help PR PostgreSQL set up using CSV #469 Done Merged PR Add Col pop up text to tables #473 Problem Issue #185, protected/views/dataset/view.php file in the production server doesn’t look like the file that Ken has updated Issue #462, the code on the develop branch being out of sync with the code on the production server. Reference ...

August 3, 2020 · 1 min · 81 words · Ken Cho

Learn, todo and done 27-31/7/20

Learn Study the gigaDB codebase !!! CI/CD What is Continuous Integration? What is Continuous Delivery? Continuous Deployment vs Continuous Delivery Terraform What is Terraform? BDD, TDD Todo Help PR PostgreSQL set up using CSV #469 Done Merged PR Change password page style #470 Merged PR Update gigaDB logos #472 Merged PR Defaul table column #464 Follow up PR Functional test for admin access #463 Problem Why new_faq.php and new_datasetpage.php is separated from new_main.php? Same code has to add these files separatly. A lot of code in /protected/views folder are duplicated. Reference ...

July 27, 2020 · 1 min · 91 words · Ken Cho

Learn, todo and done 20-24/7/20

Learn Behat BDD Todo Done Aim to pass Behat test for #464 docker-compose run --rm test bin/behat -vv --stop-on-failure --tags "@pr464" BCC2020 conference and workshops Reference

July 20, 2020 · 1 min · 26 words · Ken Cho

Learn, todo and done 22-26/6/20

Learn Docker TDD Codeception PHPUnit Yii2 Todo Done Issue #291 Review PR#452 Issue #423 Issue #425 Issue #440 Reference

June 22, 2020 · 1 min · 19 words · Ken Cho