Commit Graph

17 Commits

Author SHA1 Message Date
chaodaiG 1bbdda768c Add unit test to make sure helloworld samples README consistent with source ()
* unclean working version of unit testing

* fix after merging

* rename test file

* remove debugging message

* based on PR comments
2019-03-27 19:23:51 -07:00
chaodaiG 40b64f27f8 refactor e2e test () 2019-03-27 10:41:52 -07:00
chaodaiG 6eb034e158 Consolidate helloworld sample apps output and make sure instruction consistent with source code ()
* consolidate helloworld sample outputs

* make sure sources are identical with README

* more correction

* more correction

* syntax fix
2019-03-27 09:55:51 -07:00
chaodaiG 52837ad26a Add e2e tests for kotlin, nodejs, php, python, ruby, and shell sample apps ()
* resolve merge conflict

* add shell

* use comma instead of space as languages separator
2019-03-26 11:44:51 -07:00
mattmoor-sockpuppet 6eacdac7d7 golang format tools ()
Produced via:
  `gofmt -s -w $(find -path './vendor' -prune -o -type f -name '*.go' -print))`
  `goimports -w $(find -name '*.go' | grep -v vendor)`
2019-03-26 07:33:51 -07:00
chaodaiG 0ca7b238c4 allow emit-metrics flag () 2019-03-25 22:32:50 -07:00
chaodaiG 789ca781fd Add generic e2e test base for sample apps ()
* table driven test

* fix build error

* add e2e build tag to these files to make them not fail unit test

* update based on PR comment

* switch to yaml based config

* make configFile a const

* Temporarily start knative serving for testing purpose

* This reverts commit 75b8fc434b.
2019-03-25 13:50:50 -07:00
Adriano Cunha 166b4d6cfd Disable markdown link checks ()
Addresses .
2019-01-15 16:55:30 -08:00
Adriano Cunha b6732c9216 Update presubmit tests ()
Fixes .

* disable markdown linting
* ignore localhost links when checking for dead links in markdown files

Bonus: fix link in README.md
2019-01-15 10:09:30 -08:00
Adriano Cunha 49126fcc43 Add real build/unit presubmit tests ()
Addresses .
Addresses .

* Update test-infra to use the default build/unit test runners, which includes building go code and linting markdown files.
* Remove the integration tests, as they only start Knative Serving, which is irrelevant for this repo.

Bonuses:
* fix unbuildable `grpc-ping-go` sample
* remove test-infra import hack from `Gopack.lock` and `update-deps.sh`
2019-01-10 14:23:42 -08:00
mattmoor-sockpuppet c64c63a160 Format markdown ()
Produced via: `prettier --write --prose-wrap=always $(find -name '*.md' | grep -v vendor | grep -v .github)`
2018-12-04 14:34:25 -08:00
mattmoor-sockpuppet 41462c69e1 Format markdown ()
Produced via: `prettier --write --proseWrap=always $(find -name '*.md' | grep -v vendor)`
2018-12-03 13:54:25 -08:00
Adriano Cunha 9f5fed536d Vendor the test-infra scripts ()
* shared scripts from test-infra live in //vendor/github.com/knative/test-infra/scripts;
* created `//hack/update-deps.sh` to properly update deps, including test-infra;
* all bash scripts were updated to use the vendored scripts;

Part of .
2018-08-23 21:27:59 -07:00
Adriano Cunha 72cb87519a Use helpers from prow-tests image for tests ()
* Use helpers from prow-tests image for tests

We're consolidating the test infrastructure into a single place, so all repos get the same fixes, updates and new features.

`presubmit-tests.sh` helper is implemented by 
`e2e-tests.sh` helper is implemented by 

* Explicitly fail test if setup fails
2018-07-21 10:17:34 -07:00
Ryan Gregg c81e11176e Add license footer and text () 2018-07-19 12:05:32 -07:00
Adriano Cunha 7e51ecbcbb Remove bobcatfish from OWNERS ()
bobcatfish is transitioning off of this project.
2018-07-10 09:48:39 -07:00
Adriano Cunha 5c7ec25226 Create presubmit and end-to-end test infrastructure ()
* Create presubmit and end-to-end test infrastructure

Partially addresses .

Note that build, unit and integration tests are currently placeholders for the real stuff (see ,  and ).

* Fixes:
* Correctly wait for knative/serving to be up
* Add proper E2E header, stating that no tests are run
2018-07-03 13:07:28 -07:00