Skip to content

Latest commit

 

History

History
150 lines (129 loc) · 10.2 KB

munit-1.0-rc-release-notes.adoc

File metadata and controls

150 lines (129 loc) · 10.2 KB

MUnit 1.0-RC Release Notes

MuleSoft is pleased to announce the release of the MUnit 1.0 RC1! MUnit is a functional and unit testing framework for Mule which allows you to easily build tests using Anypoint Studio. With Munit you can:

  • Create your mule test by writing mule code

  • Create your mule test by writing java code.

  • Disable flow inbound endpoints

  • Disable endpoint connectors.

  • Mock outbound endpoints

  • Mock Message processors

  • Spy any message processor.

  • Verify Message processor calls.

  • Assert flow exceptions

  • Enable or disable particular tests

  • Run your tests from Anypoint Studio or Maven

  • See your assertion/error report with Mule stack trace

New Features and Functionality

This release includes many new usability improvements and bug fixes, including:

  • Create test suites from RAML files for APIkit testing

  • Improved syntax for MUnit components

  • Improved wizard for creating tests

  • Support for testing Database and JMS components

  • Support for specifying JVM arguments when launching tests

  • Support for running a single test or group of tests using a file pattern

  • And many bug fixes.

Hardware and Software Requirements

JDK JDK 1.7.0 (recommended: JDK 1.7.0_79/80), JDK 1.8

OS

MacOS 10.10.0, HP-UX 11i V3, AIX 7.1, Windows 2012 R2 Server, Windows 8.1, Solaris 11.2, RHEL 5.11, Ubuntu Server 14.04

Compatibility Information

MUnit is compatible with the Mule 3.6 and 3.7 runtimes. When running in Mule 3.6.x, the following items are not supported:

Known Issues

  • Currently MUnit Maven artifacts are versioned according to the Mule runtime that will run in, however for the final GA release, versioning will channel to be decoupled and reflect the final 1.0 version.

Migration Guide

Please see the MUnit 1.0-RC migration for how to update your tests to support the new release.

New Features and Functionality

View new features and functionality

https://www.mulesoft.org/jira/browse/MU-181

Create a way to mock intercepting message processor in particular DB connector

https://www.mulesoft.org/jira/browse/MU-150

Let MUnit run a single test, tests file or tests with a certain name pattern

https://www.mulesoft.org/jira/browse/MU-204

Add a section to the wiki listing all the mel expression we contribute

https://www.mulesoft.org/jira/browse/MU-227

Create munit stuite from RAML configuration File

https://www.mulesoft.org/jira/browse/MUSP-8

Create munit stuite from RAML configuration File

https://www.mulesoft.org/jira/browse/MUSP-52

Add support for vm arguments

https://www.mulesoft.org/jira/browse/MU-316

Change assert-not-same MP signature

Bug Fixes

View fixed issues

https://www.mulesoft.org/jira/browse/MU-176

Munit org.mule.api.registry.ResolverException: There are two transformers that are an exact match for input

https://www.mulesoft.org/jira/browse/MUSP-1

When creating a new munit test the default flow ref doesn’t get draw

https://www.mulesoft.org/jira/browse/MU-200

Java component with @OutboundHeaders, @Payload throwing NPE

https://www.mulesoft.org/jira/browse/MU-201

contains MEL functions is overwriting an actual MEL function

https://www.mulesoft.org/jira/browse/MU-139

Fix integration tests dependencies

https://www.mulesoft.org/jira/browse/MUSP-3

Configure munit project runs after each suite creation

https://www.mulesoft.org/jira/browse/MUSP-7

Create new test from studio create a wrong name

https://www.mulesoft.org/jira/browse/MU-220

Munit component doesn’t support property place holders

https://www.mulesoft.org/jira/browse/MUSP-2

Mock canvas, set payload doesn’t get save when loosing focus

https://www.mulesoft.org/jira/browse/MUSP-20

Studio XML view show schema error in mule:config

https://www.mulesoft.org/jira/browse/MUSP-27

MUnit editor doesn’t recognize munit schema

https://www.mulesoft.org/jira/browse/MUSP-6

Munit tests folder is not automatically added to classpath

https://www.mulesoft.org/jira/browse/MUSP-30

Cannot run MUnit test

https://www.mulesoft.org/jira/browse/MUSP-25

payload editor in set-message spans out of the view

https://www.mulesoft.org/jira/browse/MUSP-5

When creating a test for a batch module there shouldn’t be a flow ref

https://www.mulesoft.org/jira/browse/MUSP-31

Run as MUnit option has disapeared

https://www.mulesoft.org/jira/browse/MUSP-28

Missing test description error not shown on Message Flow view

https://www.mulesoft.org/jira/browse/MUSP-37

Remove the * from spring:import

https://www.mulesoft.org/jira/browse/MUSP-23

Eclipse plugin is unsigned

https://www.mulesoft.org/jira/browse/MUSP-40

create new test creates duplicated ids

https://www.mulesoft.org/jira/browse/MU-236

Test coverage percentage inaccurate

https://www.mulesoft.org/jira/browse/MUSP-48

Double click over test in munit runner does not focus on the test

https://www.mulesoft.org/jira/browse/MU-249

MunitRemoteRunner to notify ignored tests

https://www.mulesoft.org/jira/browse/MUSP-47

Flag ignored tests in MUnit Runner

https://www.mulesoft.org/jira/browse/MUSP-44

Munit runtime doesn’t get updated when esb runtime version changes

https://www.mulesoft.org/jira/browse/MUSP-41

Failing to launch config is not reported

https://www.mulesoft.org/jira/browse/MUSP-43

After running a JUnit test MUnit test result has been deleted

https://www.mulesoft.org/jira/browse/MUSP-51

Mandatory descriptions not being persisted

https://www.mulesoft.org/jira/browse/MUSP-58

Default value for attribute editors in mocks and verifis

https://www.mulesoft.org/jira/browse/MUSP-60

Focus new test after adding one

https://www.mulesoft.org/jira/browse/MUSP-57

munit-apikit-test-generator MAVEN DEP should not be added to pom

https://www.mulesoft.org/jira/browse/MU-102

One test fail and got a green bar

https://www.mulesoft.org/jira/browse/MUSP-73

Mocks should be allow in before tests

https://www.mulesoft.org/jira/browse/MU-262

ForEach loop cannot transform back from XML

https://www.mulesoft.org/jira/browse/MUSP-63

Munit maven support should add src/test/resources folder too

https://www.mulesoft.org/jira/browse/MUSP-83

Import project doesn’t set up munit classpath

https://www.mulesoft.org/jira/browse/MUSP-70

Unable to stop debugger when a test suite has no breakpoints and debugging from upper menu

https://www.mulesoft.org/jira/browse/MUSP-75

MUnit should not create a test suite if a flow was not chosen

https://www.mulesoft.org/jira/browse/MUSP-72

Random Debugger issues

https://www.mulesoft.org/jira/browse/MU-275

Make MUnit runner to skip license check

https://www.mulesoft.org/jira/browse/MUSP-78

Unable to run MUnit Test Suite from the XML code view

https://www.mulesoft.org/jira/browse/MU-244

Logs can not be enable in munit 3.6.x

https://www.mulesoft.org/jira/browse/MUSP-94

Fix classpath duplications when running munit tests

https://www.mulesoft.org/jira/browse/MUSP-91

Assert Equals icons are wrong

https://www.mulesoft.org/jira/browse/MUSP-92

Fix plugin labeling

https://www.mulesoft.org/jira/browse/MU-282

Assertion errors are being accounted as errors instead of failures

https://www.mulesoft.org/jira/browse/MUSP-103

Awful icon for contextual

https://www.mulesoft.org/jira/browse/MUSP-98

Add munit icon to context menu

https://www.mulesoft.org/jira/browse/MUSP-95

Remove munit icon that should show/hide production code

https://www.mulesoft.org/jira/browse/MU-287

backport mock module to 3.5.5 version of devkit

https://www.mulesoft.org/jira/browse/MUSP-122

"No MUnit Runtime found" alert should not appear if user wants to create/import a project with a version of mule not compatible with MUnit

https://www.mulesoft.org/jira/browse/MUSP-86

Re run single test doesn’t work

https://www.mulesoft.org/jira/browse/MUSP-93

Adds new munit version tag every time ¨Configure Munit Maven Support¨ is running

https://www.mulesoft.org/jira/browse/MUSP-89

Create new test suite wizard should default the file

https://www.mulesoft.org/jira/browse/MUSP-107

Create MUnit Test Suite doesn’t check test suite duplication

https://www.mulesoft.org/jira/browse/MUSP-106

Creating MUnit Test Suite editor has wrong root

https://www.mulesoft.org/jira/browse/MUSP-90

Add weave plugins jar to classpath when running test

https://www.mulesoft.org/jira/browse/MU-292

Execution incomplete when exception expected expression fails

https://www.mulesoft.org/jira/browse/MUSP-101

Should not let running more than one Test Suite at a time

https://www.mulesoft.org/jira/browse/MU-293

Assert equals fails with null and NullPayload

https://www.mulesoft.org/jira/browse/MU-289

NPE when custom assertion assertion-ref is not defined

https://www.mulesoft.org/jira/browse/MUSP-112

Cannot rerun test

https://www.mulesoft.org/jira/browse/MUSP-104

Running test suite for the first time ask for edit config

https://www.mulesoft.org/jira/browse/MUSP-129

Completion bar doesn’t get updated when test is ran from the toll bar

https://www.mulesoft.org/jira/browse/MUSP-118

When double clicking on test with error MUnit view looses test list

https://www.mulesoft.org/jira/browse/MU-274

mule-app.properties should be loaded by the mule context when running from maven

https://www.mulesoft.org/jira/browse/MUSP-143

MUnit plugin should ignore actions over domain projects

https://www.mulesoft.org/jira/browse/MUSP-125

Test suite execution interference

https://www.mulesoft.org/jira/browse/MUSP-42

Don’t have run again or run failed button

https://www.mulesoft.org/jira/browse/MUSP-145

MUnit classloader it’s not recognizing SAP linked libraries even though the application recognizes them when loading

https://www.mulesoft.org/jira/browse/MUSP-138

An exception is thrown whenever a pom.xml file is opened

https://www.mulesoft.org/jira/browse/MUSP-117

MUnit view hides tests when screen is not big

https://www.mulesoft.org/jira/browse/MUSP-147

Validate empty suite name