Comments (3)
We're converting the NUnitXML, so that's probably why we get nothing if the test doesn't start. We can change how we run the tests if there's a way to capture the errors.
Here's how we run the tests.
The files:
Solution.ps1
Solution.Tests.ps1
Preloaded.ps1
(optional)
The command:
pwsh -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Bypass Run-Tests.ps1
Run-Tests.ps1
:
Import-Module -Name Pester
Import-Module -Name Pester-Codewars
$config = New-PesterConfiguration
$config.Should.ErrorAction = 'Continue'
$config.Output.Verbosity = 'None'
$config.Run.PassThru = $true
Invoke-Pester -Configuration $config | ConvertTo-NUnitReport | ConvertTo-Codewars
Pester-Codewars
is https://github.com/codewars/Pester-Codewars and stored in ~/.local/share/powershell/Modules/Pester-Codewars/Pester-Codewars.psm1
.
from runner.
After the Invoke-Pester
finishes, something takes care of processing the NUnit XML, right? Is it possible to check out the stdout/stderr if the report is not found, and present it as output of a test run?
I can check if/how such error is reported, I just do not know if it's possible to use stdout if there's no XML report.
EDIT: Okay I think I got it.
from runner.
The last line in Run-Tests.ps1
:
Invoke-Pester -Configuration $config | ConvertTo-NUnitReport | ConvertTo-Codewars
I forgot the details, but ConvertTo-NUnitReport
should be generating the NUnit XML. Then that's piped to ConvertTo-Codewars
.
I don't think we do anything to the stderr.
from runner.
Related Issues (20)
- Add `junit-jupiter-params` for Groovy
- Spock data-driven tests produce invalid output
- Add `junit-jupiter-params` for Kotlin
- Add C++ 20 HOT 2
- Add Java 21 HOT 2
- Add Bend
- Add [language: C++] [version: 2023] HOT 1
- Add Gleam
- Add elm/parser for elm
- Add IPython/Jupyter Notebooks
- Add Monaco (or similar) editor to Codewars.com HOT 4
- Setting random seed automatically in the Lua output handler HOT 3
- Lua preloaded code not preloaded HOT 3
- Add Nom for Rust
- Add Groovy 4 HOT 1
- Rust: can't run tests, Cargo.toml is missing HOT 2
- "Kumite was published with failed tests" even though all tests are succesful
- Wrong syntax highlighting for Groovy GStrings when interpolating values HOT 5
- Groovy: Change JUnit version from 4 to 5 for Tests
- Add [language name] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from runner.