-
-
Notifications
You must be signed in to change notification settings - Fork 48
Description
I am new to True and am trying to understand the process for testing CSS Output. When I do a assert-equal test I get something like this:
✔ [assert-equal] This is some test...
But when I do a CSS Output test like this:
@include assert {
@include output {
width: 14em + 2;
}
@include expect {
width: 16em;
}
}
I get
/* ASSERT: */
/* OUTPUT */
.test-output {
width: 16em;
}
/* END_OUTPUT */
/* EXPECTED */
.test-output {
width: 16em;
}
/* END_EXPECTED */
/* END_ASSERT */
Maybe it's just me, but that isn't very helpful. I don't see any sort of pass/fail check. Also just messing around with the values I purposely mess it up:
@include assert {
@include output {
width: 14em + 2;
}
@include expect {
width: 1em;
}
}
and I get
/* ASSERT: */
/* OUTPUT */
.test-output {
width: 16em;
}
/* END_OUTPUT */
/* EXPECTED */
.test-output {
width: 1em;
}
/* END_EXPECTED */
/* END_ASSERT */
/* */
So obviously this test fails but it doesn't actually say anything about failure. Am I supposed to just read it line by line and manually determine the pass/fail myself?
I'm just trying to understand the workflow here and how this is supposed to work. I guess I would have expected the library to take the output and expected and actually compare them and give a pass/fail.
If you have a complicated mixin that outputs a bunch of generated CSS, manually determining pass/fail is definitely prone to error.