Allow reading tests from files
See original GitHub issueIt’s possible to read prerequest scripts from a file by prefixing it with file:
. It would be great if that were possible for tests, too.
This configuration
"tests": {
"extendTests": [
{
"openApiOperation": "*::/*",
"tests": [
"file:portman/tests.js"
]
}
]
},
sets all tests to the literal value file:portman/tests.js
.
Issue Analytics
- State:
- Created a year ago
- Comments:7
Top Results From Across the Web
Reading files - Learn Go with tests - GitBook
If we prove that we can read all the files in a directory, that will be a good start. This will give us...
Read more >Reading a file before testing a method - it is an integration test ...
I think that it is a unit test because still I test only my parser, not reading data from file. But I cannot...
Read more >Is file access in unit tests bad? - Stack Overflow
Strictly speaking, unit tests should not use the file system because it is slow. However, readability is more important. XML in a file...
Read more >Reading / Writing on Files | python-testing-by-examples
Reading Files ; Writing on Files. Reading Files. Let's say I have a method that returns the number of lines from a file....
Read more >Using files in unit tests - DataMiner Dojo
Sometimes, you need to create tests that use one or more files as test data. ... Let's have a look at an example...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@wedi @jopucpla A PR has been provided, so support for using
file:
forextendTest
will land in the next release of Portman.Thank you ! 😃