- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 665
Comparing changes
Open a pull request
base repository: onsi/ginkgo
base: v1.14.2
head repository: onsi/ginkgo
compare: v1.15.0
- 17 commits
- 58 files changed
- 8 contributors
Commits on Oct 13, 2020
-
chore: update go.sum to fix Travis CI
In CI we run `go mod tidy` and check that it hasn't changed `go.sum` in order to check that we haven't comitted an "untidy" file. It seems that Go 1.14 (in development) does some extra tidying of `go.sum` which is backwards compatible with Go 1.13 and Go 1.12. Because of this backwards compatability, it feels safe to commit this. If changes are made in future that are not backwards compatible, then we should just run this check on the lowest compatible version of Go.
Configuration menu - View commit details
-
Copy full SHA for dfe3698 - Browse repository at this point
Copy the full SHA dfe3698View commit details
Commits on Dec 8, 2020
-
Configuration menu - View commit details
-
Copy full SHA for adac43d - Browse repository at this point
Copy the full SHA adac43dView commit details
Commits on Dec 12, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 43c12da - Browse repository at this point
Copy the full SHA 43c12daView commit details
Commits on Dec 15, 2020
-
Add support for using template to generate tests (#752)
* Add support for using template to generate tests Fixes #749 * Add unit test * Fix test - package is foo_bar * Fix integration test For Test templates, the import path for the package being tests was incorrect. Updating to check for a string that ends with the package name.
Kevin S Kirkup authoredDec 15, 2020 Configuration menu - View commit details
-
Copy full SHA for efb9e69 - Browse repository at this point
Copy the full SHA efb9e69View commit details
Commits on Dec 22, 2020
-
travis: use supported Go versions (1.14+)
Go 1.15 was released in August 2020, let's use it for testing. Go 1.13 is no longer supported since Go 1.15 is released, so remove it. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for bb85580 - Browse repository at this point
Copy the full SHA bb85580View commit details -
travis: simplify check for go mod tidy-ness
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for d44a343 - Browse repository at this point
Copy the full SHA d44a343View commit details -
- use $GOPATH instead of $HOME/gopath; - put $GOPATH/bin first so we don't have to explicitly specify the path when calling ginkgo; Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 487ea8f - Browse repository at this point
Copy the full SHA 487ea8fView commit details -
travis: separate go vet, put it first
Since go vet is much quicker than running tests, call it first (no sense in doing further tests if it fails). Also, put it to a separate line, as the travis output is more comprehensible this way. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f9457b0 - Browse repository at this point
Copy the full SHA f9457b0View commit details
Commits on Dec 30, 2020
-
Adds 'outline' command to print the outline of specs/containers in a …
…file (#754) * Adds 'outline' command to print the outline of specs/containers in a file Implements feature request in #753 * outline: Add support for nodot and alias import of the ginkgo package * outline: During a post-order traversal of an AST Node, do not derive its ginkgo metadata The post-order traversal needs to check whether the AST Node is a ginkgo node. That can be done by comparing the positions of the AST Node and the last visited ginkgo node. Deriving the ginkgo metadata is not necessary. * outline: Add backpropagation of unfocus, propagation of inherited focus/pending properties * outline: Add instructions and script for creating/updating sample test results To make it easier to maintain the outline tests. * outline: Use script to re-create result samples for all tests The content has not changed; only the JSON formatting and the filenames have changed. * outline: Factor the back/propagation code to helper functions The top-level function needed to be shorter. * outline: Refactor deriving ginkgo identifier from call expression Again, the top-level function needed to be shorter. * outline: Move the exported outline code into its own file Keep the unexprted ginkgoNode code in a separate file. * outline: Instead of aliasing ginkgoNode with outline, embed ginkgoNode in outline An advantage of embedding is that it does not require casting. The outline receivers does not change. * outline: (fix) Derive the "text" of the By ginkgo call The "text" was being ignored by mistake. * outline: Test an outline of a "suite_test.go" file The test and its result samples were already present, but the test was not run. * outline: Add "indent" format This is really just for fun. Here's an example: ``shell ginkgo outline -format=indent outline/_testdata/normal_test.go ``` ```shell Name,Text,Start,End,Spec,Focused,Pending Describe,NormalFixture,116,605,false,false,false Describe,normal,152,244,false,false,false It,normal,182,240,true,false,false By,step 1,207,219,false,false,false By,step 2,223,235,false,false,false Context,normal,247,307,false,false,false It,normal,276,303,true,false,false When,normal,310,367,false,false,false It,normal,336,363,true,false,false It,normal,370,396,true,false,false Specify,normal,399,430,true,false,false Measure,normal,433,480,true,false,false ``` It also happens to look nice piped through `column`: ```shell ginkgo outline -format=indent outline/_testdata/normal_test.go | column --table -s="," ``` ``` Name Text Start End Spec Focused Pending Describe NormalFixture 116 605 false false false Describe normal 152 244 false false false It normal 182 240 true false false By step 1 207 219 false false false By step 2 223 235 false false false Context normal 247 307 false false false It normal 276 303 true false false When normal 310 367 false false false It normal 336 363 true false false It normal 370 396 true false false Specify normal 399 430 true false false Measure normal 433 480 true false false ```
Configuration menu - View commit details
-
Copy full SHA for 071c369 - Browse repository at this point
Copy the full SHA 071c369View commit details
Commits on Jan 3, 2021
-
outline: Add support for "table" extension containers and specs (#758)
* outline: Do not embed ginkgoNode in the outline struct Although the outline struct did embed the ginkgoNode struct, I think embedding does not make sense: The outline struct only needs a `Nodes` field, and does not use the other fields of the ginkgoNode struct. * outline: Import table extension in alias and nodot tests Although the table extension isn't supported by outline, the import was left out by mistake. * outline: Refactor package name comparison * outline: Add support for "table" extension containers and specs
Configuration menu - View commit details
-
Copy full SHA for 6803cc3 - Browse repository at this point
Copy the full SHA 6803cc3View commit details
Commits on Jan 11, 2021
-
outline: Make reading source from stdin uniform across operating syst…
…ems (#760) * outline: Make reading source from stdin uniform across operating systems Let's say that there is an IDE plugin that calls `gingko outline`. It will likely pipe the document contents via stdin. And the IDE will likely run on multiple operating systems. With the `-` alias for stdin, the plugin can use the same ginkgo command on every operating system. This alias is common, but not ubiquituous. Users can continue to use operating system-specific filenames for stdin. Example: ```shell > cat outline/_testdata/normal_test.go | ./ginkgo outline -format=indent - ``` ```shell Name,Text,Start,End,Spec,Focused,Pending Describe,NormalFixture,116,605,false,false,false Describe,normal,152,244,false,false,false It,normal,182,240,true,false,false By,step 1,207,219,false,false,false By,step 2,223,235,false,false,false Context,normal,247,307,false,false,false It,normal,276,303,true,false,false When,normal,310,367,false,false,false It,normal,336,363,true,false,false It,normal,370,396,true,false,false Specify,normal,399,430,true,false,false Measure,normal,433,480,true,false,false DescribeTable,normal,483,541,false,false,false Entry,normal,522,537,true,false,false DescribeTable,normal,544,602,false,false,false Entry,normal,583,598,true,false,false ``` * outline: Remove duplicate definition of the short usage message
Configuration menu - View commit details
-
Copy full SHA for 935b538 - Browse repository at this point
Copy the full SHA 935b538View commit details -
* Update README.md add a Chinese Version Doc * Update README.md add "|" between "doc" and "中文文档"
Configuration menu - View commit details
-
Copy full SHA for 5207632 - Browse repository at this point
Copy the full SHA 5207632View commit details -
cli: allow multiple -focus and -skip flags (#736)
As an example, now instead of ... --skip one|two|three|four ... one can specify ... \ --skip one \ --skip two \ --skip three \ --skip four \ ... which helps readability and maintainability a lot in case there are many tests to skip. Fixes #735 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9a782fb - Browse repository at this point
Copy the full SHA 9a782fbView commit details
Commits on Jan 18, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 06744e8 - Browse repository at this point
Copy the full SHA 06744e8View commit details
Commits on Jan 19, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 0c40583 - Browse repository at this point
Copy the full SHA 0c40583View commit details -
internal/remote: use unix.Dup2 instead of wrapping Dup2/Dup3 manually (…
…#761) The latest version of the golang.org/x/sys/unix package already implements func Dup2 using Dup3 on platforms which dont have the dup2 syscall. Use Dup2 and let x/sys/unix figure out the correct syscall. This effectivly reverts PR #680. Verified that ginkgo still correctly builds on linux/mips64le.
Configuration menu - View commit details
-
Copy full SHA for c2b0e16 - Browse repository at this point
Copy the full SHA c2b0e16View commit details
Commits on Feb 1, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c75f46e - Browse repository at this point
Copy the full SHA c75f46eView commit details
There are no files selected for viewing