Skip to content

Commit

Permalink
WIP: Once each gherkin & messages release, we can move the dependenci…
Browse files Browse the repository at this point in the history
…es from our fork
  • Loading branch information
krishnangovindraj committed Jan 19, 2024
1 parent 8cbe1e7 commit 3c6ef12
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cpp/test/cucumber/lib/runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
#include <sstream>
#include <string>

#include <gherkin/parser.hpp>
#include <gherkin/pickle_compiler.hpp>
#include <gherkin/utils.hpp>
#include <cucumber/gherkin/parser.hpp>
#include <cucumber/gherkin/pickle_compiler.hpp>
#include <cucumber/gherkin/utils.hpp>

#include "cucumber_bdd/runner.hpp"

Expand All @@ -46,10 +46,10 @@ std::string type_name();

void TestRunnerBase::loadFeature(const std::string& path) {
// std::regex testFilter = std::regex(::testing::GTEST_FLAG(filter), std::regex::extended);
std::string featureContents = gherkin::slurp(path);
gherkin::parser parser;
std::string featureContents = cucumber::gherkin::slurp(path);
cucumber::gherkin::parser parser;
cucumber::messages::gherkin_document doc = parser.parse(path, featureContents);
gherkin::pickle_compiler compiler;
cucumber::gherkin::pickle_compiler compiler;

if (doc.feature.has_value()) {
for (cucumber::messages::pickle scenario : compiler.compile(doc, path)) {
Expand Down

0 comments on commit 3c6ef12

Please sign in to comment.