Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Kahlan
Kahlan

1
0
+ 1
0
TestNG
TestNG

29
33
+ 1
0
Add tool

TestNG vs Kahlan: What are the differences?

Developers describe TestNG as "A testing framework inspired from JUnit and NUnit". It is a testing framework designed to simplify a broad range of testing needs, it covers all categories of tests: unit, functional, end-to-end, integration, etc.Run your tests in arbitrarily big thread pools with various policies available (all methods in their own thread, one thread per test class, etc. On the other hand, Kahlan is detailed as "A full-featured Unit & BDD test framework". It is a full-featured Unit & BDD test framework a la RSpec/JSpec which uses a describe-it syntax and moves testing in PHP one step forward.

TestNG and Kahlan can be categorized as "Testing Frameworks" tools.

Some of the features offered by TestNG are:

  • Support for data-driven testing
  • Support for parameters
  • Powerful execution model (no more TestSuite)

On the other hand, Kahlan provides the following key features:

  • RSpec/JSpec syntax
  • Code Coverage metrics (xdebug or phpdbg required)
  • Handy stubbing system (mockery or prophecy are no longer needed)

Kahlan is an open source tool with 1K GitHub stars and 54 GitHub forks. Here's a link to Kahlan's open source repository on GitHub.

- No public GitHub repository available -

What is Kahlan?

It is a full-featured Unit & BDD test framework a la RSpec/JSpec which uses a describe-it syntax and moves testing in PHP one step forward.

What is TestNG?

It is a testing framework designed to simplify a broad range of testing needs, it covers all categories of tests: unit, functional, end-to-end, integration, etc.Run your tests in arbitrarily big thread pools with various policies available (all methods in their own thread, one thread per test class, etc.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose Kahlan?
Why do developers choose TestNG?
    Be the first to leave a pro
      Be the first to leave a pro
        Be the first to leave a con
          Be the first to leave a con
          What companies use Kahlan?
          What companies use TestNG?
            No companies found

            Sign up to get full access to all the companiesMake informed product decisions

            What tools integrate with Kahlan?
            What tools integrate with TestNG?
              No integrations found

              Sign up to get full access to all the tool integrationsMake informed product decisions

              What are some alternatives to Kahlan and TestNG?
              PHPUnit
              PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.
              JUnit
              JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.
              Cucumber
              Cucumber is a tool that supports Behaviour-Driven Development (BDD) - a software development process that aims to enhance software quality and reduce maintenance costs.
              RSpec
              Behaviour Driven Development for Ruby. Making TDD Productive and Fun.
              Capybara
              Capybara helps you test web applications by simulating how a real user would interact with your app. It is agnostic about the driver running your tests and comes with Rack::Test and Selenium support built in. WebKit is supported through an external gem.
              See all alternatives
              Decisions about Kahlan and TestNG
              Joshua Dean K眉pper
              Joshua Dean K眉pper
              CEO at Scrayos UG (haftungsbeschr盲nkt) | 1 upvotes 6.6K views
              atScrayos UG (haftungsbeschr盲nkt)Scrayos UG (haftungsbeschr盲nkt)
              TestNG
              TestNG
              JUnit
              JUnit

              We use JUnit for our Java Unit and Integration tests in Version 5. Combined with @JMockit2 and @truth (from Google) we perform all kinds of tests on our minecraft, standalone and microservice architecture.

              We prefer JUnit over TestNG because of the bigger community, better support and the generally more agile development. JUnit integrates nicely with most software, while TestNG support is a little more limited.

              See more
              Interest over time
              Reviews of Kahlan and TestNG
              No reviews found
              How developers use Kahlan and TestNG
              No items found
              How much does Kahlan cost?
              How much does TestNG cost?
              Pricing unavailable
              Pricing unavailable
              News about Kahlan
              More news
              News about TestNG
              More news