Skip to content

Commit

Permalink
Clean up highlighting issue, add GlossaryPassTest
Browse files Browse the repository at this point in the history
* Message formatting shouldn't highlight at all and now doesn't
* Highlighting changed to bold the first line of each message
* Added a test case for teh GlossaryPass
* Made HugoTestBase abstract so it won't run!

Signed-off-by: reidspencer <reid.spencer@yoppworks.com>
  • Loading branch information
reid-spencer committed Oct 22, 2023
1 parent 09f2696 commit 89006a8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.reactific.riddl.hugo

import com.reactific.riddl.testkit.RunCommandSpecBase
import org.scalatest.wordspec.AnyWordSpec

class HugoCommandTest extends RunCommandSpecBase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import org.scalatest.Assertion

import java.nio.file.Path

class HugoTestBase extends ValidatingTest {
abstract class HugoTestBase extends ValidatingTest {

def runHugoOn(input: String): Either[Messages, (PassesResult, RootContainer, RiddlParserInput)] = {
val rpi = StringParserInput(input, "hugo Test")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class RegressionTests extends ParsingTest {

val regressionsFolder = "hugo/src/test/input/regressions/"
val output = "hugo/target/regressions/"

"Regressions" should {
"not produce a MatchError" in {
val source = "match-error.riddl"
Expand Down

0 comments on commit 89006a8

Please sign in to comment.