mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
add renderer to report md
This commit is contained in:
@@ -137,6 +137,8 @@ TestSuite = {
|
||||
printResult = function(self)
|
||||
local finaltime = UtilTimeFormat(self.time)
|
||||
|
||||
local name, version, vendor, device = love.graphics.getRendererInfo()
|
||||
|
||||
local md = '<!-- PASSED ' .. tostring(self.totals[1]) ..
|
||||
' || FAILED ' .. tostring(self.totals[2]) ..
|
||||
' || SKIPPED ' .. tostring(self.totals[3]) ..
|
||||
@@ -145,7 +147,9 @@ TestSuite = {
|
||||
finaltime .. 's** with **' ..
|
||||
tostring(self.totals[1]) .. '** passed, **' ..
|
||||
tostring(self.totals[2]) .. '** failed, and **' ..
|
||||
tostring(self.totals[3]) .. '** skipped\n\n### Report\n' ..
|
||||
tostring(self.totals[3]) .. '** skipped\n\n' ..
|
||||
'Renderer: ' .. name .. ' | ' .. version .. ' | ' .. vendor .. ' | ' .. device .. '\n\n' ..
|
||||
'### Report\n' ..
|
||||
'| Module | Pass | Fail | Skip | Time |\n' ..
|
||||
'| --------------------- | ------ | ------ | ------- | ------ |\n' ..
|
||||
self.mdrows .. '\n\n### Failures\n' .. self.mdfailures
|
||||
|
||||
+1
-1
@@ -61,7 +61,7 @@ All results will be printed in the console per method as PASS, FAIL, or SKIP wit
|
||||
When finished, the following files will be generated in the `/output` directory with a summary of the test results:
|
||||
- an `XML` file in the style of [JUnit XML](https://www.ibm.com/docs/en/developer-for-zos/14.1?topic=formats-junit-xml-format)
|
||||
- a `HTML` file that shows any visual test results
|
||||
- a `Markdown` file for use with [this github action](https://github.com/ellraiser/love-test-report)
|
||||
- a `Markdown` file you can use with [this github action](https://github.com/ellraiser/love-test-report)
|
||||
> An example of all types of output can be found in the `/examples`
|
||||
> The visual results of any graphic tests can be found in `/output/actual`
|
||||
|
||||
|
||||
@@ -307,7 +307,7 @@ love.test.graphics.Shader = function(test)
|
||||
extern float overwrite;
|
||||
vec4 effect(vec4 color, Image tex, vec2 texture_coords, vec2 screen_coords) {
|
||||
vec4 texcol = Texel(tex, texture_coords);
|
||||
if (overwrite == 1) {
|
||||
if (overwrite == 1.0) {
|
||||
return col;
|
||||
} else {
|
||||
return texcol * color;
|
||||
|
||||
Reference in New Issue
Block a user